home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Software Contest 3 / FM Towns Software Contest 3.iso / exp / video_t / no1 / c_sorse / gmn.c < prev    next >
C/C++ Source or Header  |  1994-01-07  |  6KB  |  255 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    Dialog_gamen ;
  9. extern int    TIcon_g[4] ;
  10. extern int    gamen_mode() ;
  11. extern int    Message_gamen ;
  12. extern int    Message_32000 ;
  13. extern int    Message_32 ;
  14. extern int    Message_256 ;
  15. extern int    DButton_gamen_on ;
  16. extern int    gamen_on() ;
  17. extern int    DButton_gamen_off ;
  18. extern int    gamen_off() ;
  19. extern int    Message_gamen_on ;
  20. extern int    Message_gamen_off ;
  21. extern int    Message_16 ;
  22.  
  23. #define ALIGN    4
  24. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  25.  
  26. /*    MMI_init 用データ    */
  27.  
  28. /*    ヘッダ    */
  29.  
  30. MMIINIT    initDataGMN = { "MmiInit",  14, 0 } ;
  31.  
  32. /* Dialog_gamen */
  33.  
  34. static MMIPACKET d001 = {    &Dialog_gamen,
  35.                             NULL,
  36.                             &MJ_DIALOGL40,
  37.                             OFFSET(DIALOGL40),
  38.                             0
  39.                         } ;
  40. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40,
  41.                                7,  32, 237, 225, 9, 7,10,
  42.                             MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  43.                             NULL,   0,   0
  44.                         } ;
  45.  
  46. /* TIcon_g[0] */
  47.  
  48. static MMIPACKET d002 = {    &TIcon_g[0],
  49.                             &Dialog_gamen,
  50.                             &MJ_TICONL40,
  51.                             OFFSET(TICONL40),
  52.                             0
  53.                         } ;
  54. static TICONL40    d002d = {    MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40 | MS_LEFTL40,
  55.                               18,  61,  35,  78, 7, 7,15,
  56.                             MS_UFRAMEL40 | MS_FRAMEL40,
  57.                             gamen_mode,
  58.                             0x0000, 259, 260
  59.                         } ;
  60.  
  61. /* TIcon_g[1] */
  62.  
  63. static MMIPACKET d003 = {    &TIcon_g[1],
  64.                             &Dialog_gamen,
  65.                             &MJ_TICONL40,
  66.                             OFFSET(TICONL40),
  67.                             0
  68.                         } ;
  69. static TICONL40    d003d = {    MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40 | MS_LEFTL40,
  70.                               18,  89,  35, 106, 7, 7,15,
  71.                             MS_UFRAMEL40 | MS_FRAMEL40,
  72.                             gamen_mode,
  73.                             0x0000, 259, 260
  74.                         } ;
  75.  
  76. /* TIcon_g[2] */
  77.  
  78. static MMIPACKET d004 = {    &TIcon_g[2],
  79.                             &Dialog_gamen,
  80.                             &MJ_TICONL40,
  81.                             OFFSET(TICONL40),
  82.                             0
  83.                         } ;
  84. static TICONL40    d004d = {    MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40 | MS_LEFTL40,
  85.                               18, 119,  35, 136, 7, 7,15,
  86.                             MS_UFRAMEL40 | MS_FRAMEL40,
  87.                             gamen_mode,
  88.                             0x0000, 259, 260
  89.                         } ;
  90.  
  91. /* Message_gamen */
  92.  
  93. static MMIPACKET d005 = {    &Message_gamen,
  94.                             &Dialog_gamen,
  95.                             &MJ_MSGL40,
  96.                             OFFSET(MSGL40),
  97.                             0
  98.                         } ;
  99. static MSGL40    d005d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  100.                                7,  32, 233,  55, 7, 7,12,
  101.                             MS_NONEL40,
  102.                             "画面モードの設定",
  103.                                2,  16,  16,
  104.                             MS_NONEL40,
  105.                                0,   0
  106.                         } ;
  107.  
  108. /* Message_32000 */
  109.  
  110. static MMIPACKET d006 = {    &Message_32000,
  111.                             &Dialog_gamen,
  112.                             &MJ_MSGL40,
  113.                             OFFSET(MSGL40),
  114.                             0
  115.                         } ;
  116. static MSGL40    d006d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  117.                               39,  59, 233,  82, 0,15, 0,
  118.                             MS_NONEL40,
  119.                             "320×240の32000色モード",
  120.                                2,  16,  16,
  121.                             MS_NONEL40,
  122.                                0,   0
  123.                         } ;
  124.  
  125. /* Message_32 */
  126.  
  127. static MMIPACKET d007 = {    &Message_32,
  128.                             &Dialog_gamen,
  129.                             &MJ_MSGL40,
  130.                             OFFSET(MSGL40),
  131.                             0
  132.                         } ;
  133. static MSGL40    d007d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  134.                               38,  87, 232, 110, 0,15, 0,
  135.                             MS_NONEL40,
  136.                             "512×480の32000色モード",
  137.                                2,  16,  16,
  138.                             MS_NONEL40,
  139.                                0,   0
  140.                         } ;
  141.  
  142. /* Message_256 */
  143.  
  144. static MMIPACKET d008 = {    &Message_256,
  145.                             &Dialog_gamen,
  146.                             &MJ_MSGL40,
  147.                             OFFSET(MSGL40),
  148.                             0
  149.                         } ;
  150. static MSGL40    d008d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  151.                               38, 117, 232, 140, 0,15, 0,
  152.                             MS_NONEL40,
  153.                             "720×480 の 256色モード",
  154.                                2,  16,  16,
  155.                             MS_NONEL40,
  156.                                0,   0
  157.                         } ;
  158.  
  159. /* DButton_gamen_on */
  160.  
  161. static MMIPACKET d009 = {    &DButton_gamen_on,
  162.                             &Dialog_gamen,
  163.                             &MJ_DBUTTONL40,
  164.                             OFFSET(DBUTTONL40),
  165.                             0
  166.                         } ;
  167. static DBUTTONL40    d009d = {    MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
  168.                               39, 183, 105, 208, 0, 7, 0,
  169.                             MS_UFRAMEL40 | MS_FRAMEL40 | MS_DEFAULTL40,
  170.                             gamen_on,
  171.                             0x0000
  172.                         } ;
  173.  
  174. /* DButton_gamen_off */
  175.  
  176. static MMIPACKET d010 = {    &DButton_gamen_off,
  177.                             &Dialog_gamen,
  178.                             &MJ_DBUTTONL40,
  179.                             OFFSET(DBUTTONL40),
  180.                             0
  181.                         } ;
  182. static DBUTTONL40    d010d = {    MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
  183.                              137, 184, 212, 209, 0, 7, 0,
  184.                             MS_UFRAMEL40 | MS_FRAMEL40,
  185.                             gamen_off,
  186.                             0x0000
  187.                         } ;
  188.  
  189. /* Message_gamen_on */
  190.  
  191. static MMIPACKET d011 = {    &Message_gamen_on,
  192.                             &Dialog_gamen,
  193.                             &MJ_MSGL40,
  194.                             OFFSET(MSGL40),
  195.                             0
  196.                         } ;
  197. static MSGL40    d011d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  198.                               40, 184, 107, 206, 0,15,15,
  199.                             MS_NONEL40,
  200.                             "確定",
  201.                                2,  16,  16,
  202.                             MS_NONEL40,
  203.                                5,   0
  204.                         } ;
  205.  
  206. /* Message_gamen_off */
  207.  
  208. static MMIPACKET d012 = {    &Message_gamen_off,
  209.                             &Dialog_gamen,
  210.                             &MJ_MSGL40,
  211.                             OFFSET(MSGL40),
  212.                             0
  213.                         } ;
  214. static MSGL40    d012d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  215.                              138, 185, 211, 208, 0,15,15,
  216.                             MS_NONEL40,
  217.                             "取消",
  218.                                2,  16,  16,
  219.                             MS_NONEL40,
  220.                                5,   0
  221.                         } ;
  222.  
  223. /* TIcon_g[3] */
  224.  
  225. static MMIPACKET d013 = {    &TIcon_g[3],
  226.                             &Dialog_gamen,
  227.                             &MJ_TICONL40,
  228.                             OFFSET(TICONL40),
  229.                             0
  230.                         } ;
  231. static TICONL40    d013d = {    MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40 | MS_LEFTL40,
  232.                               18, 151,  35, 168, 7, 7,15,
  233.                             MS_UFRAMEL40 | MS_FRAMEL40,
  234.                             gamen_mode,
  235.                             0x0000, 259, 260
  236.                         } ;
  237.  
  238. /* Message_16 */
  239.  
  240. static MMIPACKET d014 = {    &Message_16,
  241.                             &Dialog_gamen,
  242.                             &MJ_MSGL40,
  243.                             OFFSET(MSGL40),
  244.                             0
  245.                         } ;
  246. static MSGL40    d014d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  247.                               38, 148, 232, 171, 0,15, 0,
  248.                             MS_NONEL40,
  249.                             "16色モード(ビデオ出力無)",
  250.                                2,  16,  16,
  251.                             MS_NONEL40,
  252.                                0,   0
  253.                         } ;
  254.  
  255.